package com.dbf.forum.user.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

import com.dbf.forum.common.service.CommonServiceImpl;
import com.dbf.forum.user.model.User;

@Service(value="userService")
public class UserServiceImpl extends CommonServiceImpl implements UserService{
	
	public UserDetails loadUserByUsername(String username)
			throws UsernameNotFoundException {
		UserDetails user = getEntity(User.class, "username", username);
		return user;
	}

}
